import { AppRegistry }            from 'react-native';
import React ,{Component}         from 'react';

import SplashScreen               from './app/screens/SplashScreen';
import HomeScreen                 from './app/screens/home/HomeScreen';
import GameScreen                 from './app/screens/game/GameScreen';
import PlayGameScreen             from './app/screens/game/PlayGameScreen';
import MeScreen                   from './app/screens/my/MeScreen';
import LoginScreen                from './app/screens/LoginScreen';
import LocalLoginScreen           from './app/screens/LocalLoginScreen';

import PersonalInfoScreen         from './app/screens/my/PersonalInfoScreen';
import RecordsScreen              from './app/screens/my/RecordsScreen';
import CertificationScreen        from './app/screens/my/CertificationScreen';
import ReceiveCouponsScreen       from './app/screens/my/ReceiveCouponsScreen';
import AboutScreen                from './app/screens/my/AboutScreen';

import BeansScreen                from './app/screens/my/BeansScreen';
import BeansDetailScreen          from './app/screens/my/BeansDetailScreen';
import CashBalanceScreen          from './app/screens/my/CashBalanceScreen';
import PolicyScreen               from './app/screens/my/PolicyScreen';
import ModifyHeadScreen           from './app/screens/my/ModifyHeadScreen';
import CouponsDetailScreen        from './app/screens/my/CouponsDetailScreen';


import ReceiveLotteryScreen       from './app/screens/home/ReceiveLotteryScreen';
import ReceiveBeansScreen         from './app/screens/home/ReceiveBeansScreen';
import SkilledBeansScreen         from './app/screens/home/SkilledBeansScreen';
import BeansPrizeScreen           from './app/screens/home/BeansPrizeScreen';

import MineGameScreen             from './app/screens/home/MineGameScreen';
import RobinHoodGameScreen        from './app/screens/home/RobinHoodGameScreen';
import WelfareScreen              from './app/screens/home/WelfareScreen';

import BannerDetailScreen         from './app/screens/home/BannerDetailScreen';
import WKWebViewScreen            from './app/screens/game/WKWebViewScreen';
import WechatLoginScreeen         from './app/screens/WechatLoginScreeen';

import GameDetailScreen           from './app/screens/game/GameDetailScreen';

import {StackNavigator, TabNavigator} from 'react-navigation';

const tabNavigatorScreen = TabNavigator({
    Home: {screen: HomeScreen},
    Game: {screen: GameScreen},
    Me: {screen: MeScreen}
},{
    tabBarOptions: {
        activeTintColor: '#ff4114',
        inactiveTintColor: '#353535',
        showIcon: true,
        labelStyle: {
            fontSize: 12,
            marginTop: 4,
            marginBottom:0,
        },
        style: {
            backgroundColor: '#FCFCFC',
            paddingBottom:2
        },
        tabStyle: {
        }
    },
    tabBarPosition: 'bottom',
});

const MyApp = StackNavigator({
    Splash: {screen: SplashScreen},
    // LocalLoginScreen:{screen:LocalLoginScreen},
    Home: {screen: tabNavigatorScreen},
    // Login: {screen: LoginScreen},
    PersonalInfo: {screen:PersonalInfoScreen},
    Records: {screen: RecordsScreen},
    Certification: {screen: CertificationScreen},
    Policy: {screen: PolicyScreen},
    ModifyHead:{screen:ModifyHeadScreen},
    ReceiveCoupons: {screen: ReceiveCouponsScreen},
    About: {screen:AboutScreen},
    BannerDetail: {screen:BannerDetailScreen},

    PlayGame: {screen:PlayGameScreen},

    ReceiveLottery: {screen: ReceiveLotteryScreen},
    ReceiveBeans: {screen: ReceiveBeansScreen},
    SkilledBeans: {screen:SkilledBeansScreen},
    BeansPrize: {screen:BeansPrizeScreen},

    MineGame: {screen:MineGameScreen},
    RobinHoodGame: {screen:RobinHoodGameScreen},
    Welfare: {screen:WelfareScreen},

    Beans: {screen:BeansScreen},
    BeansDetail: {screen:BeansDetailScreen},
    CashBalance: {screen:CashBalanceScreen},

    WKWebView:{screen:WKWebViewScreen},
    WechatLogin:{screen:WechatLoginScreeen},
    LocalLoginScreen:{screen:LocalLoginScreen},
    GameDetail:{screen:GameDetailScreen},

    CouponsDetail:{screen:CouponsDetailScreen},

}, {
    headerMode: 'none', // 此参数设置不渲染顶部的导航条
});

AppRegistry.registerComponent('Xiaougame', () => MyApp);
